From: Georges Basile Stavracas Neto Date: Wed, 6 Jan 2021 19:38:44 +0000 (-0300) Subject: workspacesView/workspacesDisplay: Ignore emulated events X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~642 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=499af2dd812b6dbac81209ccede0b1b3719703ba;p=gnome-shell.git workspacesView/workspacesDisplay: Ignore emulated events When handling all scroll directions, it is imperative to ignore emulated events. Otherwise we may get the wrong scroll direction, e.g. when natural scrolling is enabled. Ignore pointer emulated events in WorkspaceDisplay._onScroll(). Part-of: --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 4a11f0888..1e8faf349 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -756,6 +756,9 @@ class WorkspacesDisplay extends St.Widget { if (!this._canScroll) return Clutter.EVENT_PROPAGATE; + if (event.is_pointer_emulated()) + return Clutter.EVENT_PROPAGATE; + let workspaceManager = global.workspace_manager; let activeWs = workspaceManager.get_active_workspace(); let ws;